package petrochina.company.electric.http.api;

import android.os.Parcel;
import android.os.Parcelable;

import com.hjq.http.config.IRequestApi;

/**
 *    desc   : 获取人员列表
 */
public final class PersonnelListApi implements IRequestApi {

    @Override
    public String getApi() {
        return "staff/getOperstaff";
    }

    public final static class Bean implements Parcelable {
        private long id;
        private String staffName;
        private String loginName;
        private int staffGroupId;
        private String staffGroupName;
        private String createTime;
        private String duty;
        private int dutyType;
        private int role;
        private String password;
        private String remark;

        protected Bean(Parcel in) {
            id = in.readLong();
            staffName = in.readString();
            loginName = in.readString();
            staffGroupId = in.readInt();
            staffGroupName = in.readString();
            createTime = in.readString();
            duty = in.readString();
            dutyType = in.readInt();
            role = in.readInt();
            password = in.readString();
            remark = in.readString();
        }

        public static final Creator<Bean> CREATOR = new Creator<Bean>() {
            @Override
            public Bean createFromParcel(Parcel in) {
                return new Bean(in);
            }

            @Override
            public Bean[] newArray(int size) {
                return new Bean[size];
            }
        };

        public long getId() {
            return id;
        }

        public void setId(long id) {
            this.id = id;
        }

        public String getStaffName() {
            return staffName;
        }

        public void setStaffName(String staffName) {
            this.staffName = staffName;
        }

        public String getLoginName() {
            return loginName;
        }

        public void setLoginName(String loginName) {
            this.loginName = loginName;
        }

        public int getStaffGroupId() {
            return staffGroupId;
        }

        public void setStaffGroupId(int staffGroupId) {
            this.staffGroupId = staffGroupId;
        }

        public String getStaffGroupName() {
            return staffGroupName;
        }

        public void setStaffGroupName(String staffGroupName) {
            this.staffGroupName = staffGroupName;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getDuty() {
            return duty;
        }

        public void setDuty(String duty) {
            this.duty = duty;
        }

        public int getDutyType() {
            return dutyType;
        }

        public void setDutyType(int dutyType) {
            this.dutyType = dutyType;
        }

        public int getRole() {
            return role;
        }

        public void setRole(int role) {
            this.role = role;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public static Creator<Bean> getCREATOR() {
            return CREATOR;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeLong(this.id);
            parcel.writeString(this.staffName);
            parcel.writeString(this.loginName);
            parcel.writeInt(this.staffGroupId);
            parcel.writeString(this.staffGroupName);
            parcel.writeString(this.createTime);
            parcel.writeString(this.duty);
            parcel.writeInt(this.dutyType);
            parcel.writeInt(this.role);
            parcel.writeString(this.password);
            parcel.writeString(this.remark);
        }
    }
}